<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>订单信息列表</title> 
<%@ include file="/page/include.jsp"%>
</head>
<body class="nav-md">
	<div class="container body">
		<div class="main_container">
			<div class="framebody" role="main">
				<div class="">
					<div class="clearfix"></div>
					<div class="row">
						<div class="col-md-12 col-sm-12 col-xs-12">
							<div class="x_panel">
								<div class="x_content">
									<div class="row">
										<form id="order_search_form" class="form-horizontal form-label-left">
					                      <div id="search_bar_1" class="form-group" style="display: block;">
					                        <div class="col-sm-3"></div>
					                        <div class="col-sm-6">
					                          <div class="input-group">
					                            <input type="text" id="searchKey"  name="searchKey" class="form-control" placeholder="订单编号/客户姓名/客户电话/客户单位/业务员">
					                      		<input id="orderStatus" name="orderStatus" type="hidden" value=""/>
					                           	<!-- 防止bootstrap的form表单回车刷新 -->
					                            <input type="text" style="display:none"/>
					                            <span class="input-group-btn">
					                            	<button type="button" id="btn_query_all_order" class="btn btn-danger search">搜&nbsp;索</button>
					                            	<button type="button" id="btnChange1" class="btn btn-info">高级查询</button>
					                            </span>
					                          </div>
					                        </div>
					                        <div class="col-sm-3">
					                        </div>
					                      </div>
					                      
					                      <div id="search_bar_2" style="display: none;">
					                      	<div class="form-group">
												<label class="control-label col-md-1" for="orderCode">订单编号:
												</label>
												<div class="col-md-3">
													<input type="text" id="orderCode" name="orderCode" class="form-control col-md-12"/>
												</div>
											
												<label class="control-label col-md-1" for="customerName">客户姓名:
												</label>
												<div class="col-md-3">
													<input type="text" id="customerName" name="customerName" class="form-control col-md-12"/>
												</div>
											
												<label class="control-label col-md-1" for="customerMobile">客户电话:
												</label>
												<div class="col-md-3">
													<input type="text" id="customerMobile" name="customerMobile" class="form-control col-md-12"/>
												</div>
											  </div>
											  
											  <div class="form-group">
												<label class="control-label col-md-1" for="customerCompanyName">客户单位:
												</label>
												<div class="col-md-3">
													<input type="text" id="customerCompanyName" name="customerCompanyName" class="form-control col-md-12"/>
												</div>
												<label class="control-label col-md-1" for="customerLevel">客户级别:
												</label>
												<div class="col-md-3">
													<select class="selectpicker form-control col-md-12" id="customerLevel" name="customerLevel" placeholder="请选择活动标签">
													</select>
													
												</div>
												
												<label class="control-label col-md-1" for="salesmanName">业务员:
												</label>
												<div class="col-md-3">
													<select class="selectpicker form-control col-md-12" id="salesmanCode" name="salesmanCode" placeholder="请选择活动标签">
													</select>
												</div>
											  </div>
											  
											  <div class="form-group">
												
												<label class="control-label col-md-1" for="searchOrderStatus">订单状态:
												</label>
												<div class="col-md-3">
													<select class="selectpicker form-control col-md-12" id="searchOrderStatus" name="orderStatus" placeholder="请选择活动标签">
													</select>
												</div>
												
												
												<label class="control-label col-md-1" for="usePointFlag">是否使用积分:
												</label>
												<div class="col-md-3">
													<select class="selectpicker form-control col-md-12" id="usePointFlag" name="usePointFlag" placeholder="请选择活动标签">
													</select>
												</div>
												
												<label class="control-label col-md-1" for="useCouponFlag">是否使用优惠券:
												</label>
												<div class="col-md-3">
													<select class="selectpicker form-control col-md-12" id="useCouponFlag" name="useCouponFlag" placeholder="请选择活动标签">
													</select>
												</div>
											  </div>
											  
											  <div class="form-group">
											  	<label class="control-label col-md-1" for="orderTime">商品名称:
                                	        	</label>
                                	        	<div class="col-md-3">
													<input type="text" id="productName" name="productName" class="form-control col-md-12"/>
												</div>
												<label class="control-label col-md-1" for="productBrand">商品品牌:
												</label>
												<div class="col-md-3">
													<select class="selectpicker form-control col-md-12" id="productBrandCode" name="productBrandCode" placeholder="请选择活动标签">
													</select>
												</div>
												<label class="control-label col-md-1" for="orderTime">商品类型:
                                	        	</label>
                            	            	<div class="col-md-3">
                                    	        	<input id="productCategoryId" name="productCategoryId" placeholder="商品分类" type="hidden">
													<input id="productCategoryName" readonly="readonly" name="productCategoryName" class="form-control col-md-12" placeholder="请选择商品分类" type="text">
													<i class="glyphicon glyphicon-chevron-down" style="z-index: 100;padding-left: 90%;margin-top: -25px;" onclick="javascript: doChoseProductCategory();"></i>
                                        		</div>
											  </div>
											  
											  <div class="form-group">
											  	<label class="control-label col-md-1" for="orderTime">下单时间 :
                                	        	</label>
                            	            	<div class="col-md-3">
                                    	        	<input type="text" id="orderTime" name="orderTime" class="form-control" readonly="readonly"/>
                                        		</div>
                                        		<div class="col-md-8">
		                                      	  <div class="pull-right">
		                                            <a class="btn btn-danger" id="btnClear"><i class="fa fa-trash-o fa-fw"></i>清空</a> 
	    	                                        <a class="btn btn-primary" id="btnQuery"><i class="fa fa-search-plus fa-fw"></i>查询</a>
	        	                                    <a class="btn btn-info" id="btnChange2">综合查询</a>
	            	                          	  </div>
                    	                 	   </div>
					    	                  </div>
					                      </div>
					                    </form>
									</div>
									<div class="row">
					                	<div class="col-sm-3"></div>
					                        <div class="col-sm-6">
					                        	<p id="model_type" style="text-align:center;margin:20px 0px 30px 0px;">
					                        		<a style="margin:0 15px;" href="javascript:void(0);" name="" class="order_search_tag_current">全部</a>
						                         	<a style="margin:0 15px;" href="javascript:void(0);" name="01" class="order_search_tag">待支付</a>
						                         	<a style="margin:0 15px;" href="javascript:void(0);" name="09" class="order_search_tag">待上传合同</a>
						                         	<a style="margin:0 15px;" href="javascript:void(0);" name="02" class="order_search_tag">待审核</a>
						                         	<a style="margin:0 15px;" href="javascript:void(0);" name="04" class="order_search_tag">待发货</a>
						                         	<a style="margin:0 15px;" href="javascript:void(0);" name="05" class="order_search_tag">待签收</a>
						                         	<a style="margin:0 15px;" href="javascript:void(0);" name="07" class="order_search_tag">已完成</a>
						                         	<a style="margin:0 15px;" href="javascript:void(0);" name="06" class="order_search_tag">已取消</a>
					                        	</p>
					                        </div>
					                	<div class="col-sm-3"></div>
									</div>
								</div>
							</div>
						</div>
						
						<div class="col-md-12 col-sm-12 col-xs-12">
							<div class="x_panel">
								<div class="x_content">	
									<div class="row pull-right col-md-12 col-sx-12">
										<div class="col-md-3 col-sm-3" style="margin-left:-40px;">
											<button id="btn_export_order" type="button" class="btn btn-success btn-sm">导出</button>
											<button id="btn_print_order" type="button" class="btn btn-success btn-sm">打印</button>
										</div>
										<div class="col-md-3 col-sm-3" style="margin-left:-40px;">
											<span><b>订单数量：</b></span><span></span><span style="color:#D20A0A;font-weight:bold;font-size:14px;" id="orderNum"></span>
											<span style="margin-left:40px;"><b>订单金额：</b></span><span><b>￥</b></span><span style="color:#D20A0A;font-weight:bold;font-size:14px;" id="orderMoney"></span>
										</div>
										<div class="col-md-6 col-sm-6">
											<div class="btn-toolbar pull-right" style="margin-right:-100px;">
												 <div id="btn_group_search" class="btn-group">
							                     	<button id="btn_yestoday" class="btn btn-info btn-sm" type="button">当日</button>
							                        <button id="btn_recent_three_day" class="btn btn-info btn-sm" type="button">最近三天</button>
							                        <button id="btn_current_week" class="btn btn-info btn-sm" type="button">本周</button>
							                        <button id="btn_current_month" class="btn btn-info btn-sm" type="button">本月</button>
							                        <button id="btn_recent_three_month" class="btn btn-info btn-sm" type="button">最近三个月</button>
							                   	 </div>
											</div>
										</div>
				                    </div>
									<div class="row">
										<input type="hidden" id="isSalesman" value="${isSalesman }" />
										<table id="orderTable" class="table"></table>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	
	<%-- 积分操作弹出框 begin --%>
<div class="modal fade" id="cancelModal" tabindex="-1" data-backdrop="static" role="dialog" aria-labelledby="cancelModalLabel" aria-hidden="true">
    <form action="#" class="form-horizontal form-label-left">
        <div class="modal-dialog" style="width: 30%;min-height:250px;height:300px;max-height:300px;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="cancelModalLabel">订单取消</h4>
                </div>
                <div class="modal-body">
                    <div class="item form-group">
                        <label class="control-label col-md-4"><font color="red">*</font><b>取消原因：</b></label>
                        <div class="col-md-8 padTop8" style="margin-left: -10px;">
                            <select class="selectpicker col-md-12" id="cancelReasonCombo">
                            </select>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-4"><font color="red">*</font><b>备注：</b></label>
                        <div class="col-md-8">
                            <textarea id="cancelIntro" name="cancelIntro" maxlength="100" class="form-control col-md-10 col-xs-12"></textarea>
                        </div>
                    </div>
                    
                </div>
                <div class="modal-footer">
                    <input type="hidden" id="cancelOrderCode" />
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" onclick="javascript: doCancelOrder();">确定取消</button>
                </div>
            </div>
        </div>
    </form>
</div>
<%-- 积分操作弹出框 begin --%>
	
	<script src="${rootPath}/js/order/order_list.js?v=20180403"></script>
</body>
</html>